NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name [Arbalist] OSRS Hiscores Tweak // @namespace https://github.com/TheArbalist // @version 0.1 // @description Fixes link ordering in Hiscores page // @author Arbalist // @include *://services.runescape.com/m=hiscore_oldschool/* // @grant none // @license MIT // @copyright 2018, Arbalist (https://openuserjs.org/users/Arbalist) // ==/UserScript== // ==OpenUserJS== // @author Arbalist // ==/OpenUserJS== (function() { var divider = document.querySelector('#contentCategory span'), activityElements = document.querySelectorAll('.activity-link'), activities = [ 'Last Man Standing,lmsrank,6,', 'BH Rogue,bountyhunterrogue,3,', 'BH Targets,bountyhunterhunter,4,', 'Clues (master),cluescrollsmaster,8,', 'Clues (elite),cluescrollselite,7,', 'Clues (hard),cluescrollshard,5,', 'Clues (medium),cluescrollsmedium,1,', 'Clues (easy),cluescrollseasy,0,', 'Clues (all),cluescrollsall,2,', ]; activityElements.forEach(element => element.remove()); activities.forEach(activity => { activity = activity.split(','); divider.insertAdjacentHTML('afterEnd', `<a href="overall.ws?category_type=1&table=${activity[2]}" class="activity-link" style="background:url('http://www.runescape.com/img/rsp777/game_icon_${activity[1]}.png') no-repeat left center;${activity[3]}">${activity[0]}</a>`); }); })();